﻿
namespace sharpxbot.Core.Threading
{
    /// <summary>
    /// Represents active object
    /// </summary>
    public interface IActive
    {
        /// <summary>
        /// Gets value idicating whether object is running
        /// </summary>
        bool IsRunning { get; }

        /// <summary>
        /// Starts active object
        /// </summary>
        void Start();

        /// <summary>
        /// Stops active object
        /// </summary>
        void Stop();
    }
}
